package com.stephenone.zhdaily.homepage.adapter;

import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.stephenone.zhdaily.R;
import com.stephenone.zhdaily.data.bean.Footer;

import me.drakeet.multitype.ItemViewBinder;

/**
 * Created by Administrator on 2018/1/29.
 */

public class FooterViewBinder extends ItemViewBinder<Footer,FooterViewBinder.ViewHolder> {


    @NonNull
    @Override
    protected ViewHolder onCreateViewHolder(@NonNull LayoutInflater inflater, @NonNull ViewGroup parent) {
        View root = inflater.inflate(R.layout.item_footer_loading, parent,
                false);
        return new FooterViewBinder.ViewHolder(root);
    }

    @Override
    protected void onBindViewHolder(@NonNull ViewHolder holder, @NonNull Footer item) {
        // TODO: 2018/1/29 isLoading

    }

    static class ViewHolder extends RecyclerView.ViewHolder{
        public ViewHolder(View itemView) {
            super(itemView);
        }
    }
}
